package gagnatech.impl;


import gagnatech.dao.UserDAO;
import gagnatech.database.DatabaseDAO;
import gagnatech.entity.User;

public class UserDaoImpl implements UserDAO {

	private DatabaseDAO dao;
	
	public UserDaoImpl() {
		dao = new DatabaseDAO();
	}
	
	public User connect(String login, String mdp) {

		return dao.getUser(login, mdp);
	}

	public boolean addUser(User user) {
		return dao.insert(user);
	}

}
